import request from '@/utils/request'

// 查询催缴记录列表
export function listRequireRecord(query) {
  return request({
    url: '/payfee/requireRecord/list',
    method: 'get',
    params: query
  })
}

// 查询催缴记录详细
export function getRequireRecord(id) {
  return request({
    url: '/payfee/requireRecord/' + id,
    method: 'get'
  })
}

// 新增催缴记录
export function addRequireRecord(data) {
  return request({
    url: '/payfee/requireRecord',
    method: 'post',
    data: data
  })
}

// 修改催缴记录
export function updateRequireRecord(data) {
  return request({
    url: '/payfee/requireRecord',
    method: 'put',
    data: data
  })
}

// 删除催缴记录
export function delRequireRecord(id) {
  return request({
    url: '/payfee/requireRecord/' + id,
    method: 'delete'
  })
}

// 导出催缴记录
export function exportRequireRecord(query) {
  return request({
    url: '/payfee/requireRecord/export',
    method: 'get',
    params: query
  })
}